get Resource Data
Provides the data of a resource at the given Uri. Note that it is a synchronous function and all the chunks are provided immediately before the function returns.
Parameters
uri
the uri of the resource.
chunk Size
the size of the chunks in which the resource data is provided.
on Data
the callback function that is called with the resource data. The callback will be called as long as there is data left to provide and the callback returns true.